package service

import (
	"errors"

	"gitee.com/Yu-eng/Myproject/my-go-blog/dao"
	"gitee.com/Yu-eng/Myproject/my-go-blog/models"
)

func Login(userName, passWd string) (*models.LoginRes, error) {
	user := dao.GetUser(userName, passWd)
	if user == nil {
		//登录失败的逻辑
		return nil, errors.New("登录失败，账号密码错误！")
	}
}
